package org.autobot.store;

import java.util.Vector;

import org.apache.log4j.Logger;
import org.swings.base.model.store.RecordsBase;

/**
 * <p>
 * <b>Overview:</b>
 * <p>
 * This class will store the values of the clicks user performing.
 * 
 * <pre>
 * Creation date: Feb 16, 2015
 * @author Amit Kshirsagar
 * @version 1.0
 * @since
 * 
 * <p><b>Modification History:</b><p>
 * 
 * 
 * </pre>
 */
public class Click extends RecordsBase {

	/**
	 * Initiate the log4j Logger for debugging purposes.
	 * 
	 */
	private static Logger log4j = Logger.getLogger(Click.class);

	/**
	 * Print object values by default. Add required attributes of the object.
	 */

	@Override
	public String toString() {
		return "Click: " + clickId + "|" + horizontal + "|" + vertical;
	}

	private int clickId = 0;
	private int horizontal = 0;
	private int vertical = 0;

	/**
	 * This class will store the values of the clicks user performing.
	 * 
	 * @param horizontal
	 * @param vertical
	 */
	public Click(int clickId, int horizontal, int vertical) {
		setClickId(clickId);
		setHorizontal(horizontal);
		setVertical(vertical);
	}

	public int getClickId() {
		return clickId;
	}

	public void setClickId(int clickId) {
		this.clickId = clickId;
	}

	public int getHorizontal() {
		return horizontal;
	}

	public void setHorizontal(int horizontal) {
		this.horizontal = horizontal;
	}

	public int getVertical() {
		return vertical;
	}

	public void setVertical(int vertical) {
		this.vertical = vertical;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sample.base.model.RecordBase#getRecordVector()
	 */
	@Override
	public Vector getRecordVector() {
		record.add(clickId);
		record.add(horizontal);
		record.add(vertical);
		return record;
	}

}
